package com.hightrast.service.api.baseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("分页基础类")
public class BaseFiler {
    @ApiModelProperty(
        value = "页号，从1开始",
        dataType = "Integer",
        example = "1"
    )
    private Integer page = 1;

    @ApiModelProperty(
        value = "每页数据条数",
        dataType = "Integer",
        example = "20"
    )
    private Integer pageSize = 20;

    @ApiModelProperty(
        value = "排序字段",
        dataType = "String"
    )
    private String orderField;

    @ApiModelProperty(
        value = "顺序",
        dataType = "Boolean"
    )
    private Boolean asc;

}